.class public Lcom/zuimeia/ui/lockpattern/LockPatternView;
.super Landroid/view/View;
.source "LockPatternView.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;,
        Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;,
        Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    }
.end annotation


# static fields
.field private static final ASPECT_LOCK_HEIGHT:I = 0x2

.field private static final ASPECT_LOCK_WIDTH:I = 0x1

.field private static final ASPECT_SQUARE:I = 0x0

.field private static final DRAG_THRESHHOLD:F = 0.0f

.field private static final EPS:F = 1.0E-5f

.field private static final MAX_RADIUS:I = 0x1a

.field private static final MILLIS_PER_CIRCLE_ANIMATING:I = 0x2bc

.field private static final MIN_RADIUS:I = 0x6

.field private static final PROFILE_DRAWING:Z


# instance fields
.field private mAnimatingPeriodStart:J

.field private final mArrowMatrix:Landroid/graphics/Matrix;

.field private mAspect:I

.field private mBitmapHeight:I

.field private mBitmapWidth:I

.field mCenterF:Landroid/graphics/PointF;

.field private final mCircleMatrix:Landroid/graphics/Matrix;

.field private final mCurrentPath:Landroid/graphics/Path;

.field private mDiameterFactor:F

.field private mDrawingProfilingStarted:Z

.field private mEnableHapticFeedback:Z

.field mEndF:Landroid/graphics/PointF;

.field private mHitFactor:F

.field private mInProgressX:F

.field private mInProgressY:F

.field private mInStealthMode:Z

.field private mInputEnabled:Z

.field mIntersectionRet:Landroid/graphics/PointF;

.field private final mInvalidate:Landroid/graphics/Rect;

.field private mMaxRadius:I

.field private mMinRadius:I

.field private mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

.field private mPaint:Landroid/graphics/Paint;

.field private mPathPaint:Landroid/graphics/Paint;

.field private mPattern:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;",
            ">;"
        }
    .end annotation
.end field

.field private mPatternDisplayMode:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

.field private mPatternDrawLookup:[[Z

.field private mPatternInProgress:Z

.field private mSquareHeight:F

.field private mSquareWidth:F

.field mStartF:Landroid/graphics/PointF;

.field private final mStrokeAlpha:I

.field private final mTmpInvalidateRect:Landroid/graphics/Rect;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 247
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 248
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 16
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    const/high16 v12, -0x40800000

    const/4 v11, 0x3

    const/4 v10, 0x0

    const/4 v9, 0x1

    .line 251
    invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 69
    iput-boolean v10, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mDrawingProfilingStarted:Z

    .line 71
    new-instance v7, Landroid/graphics/Paint;

    invoke-direct {v7}, Landroid/graphics/Paint;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPaint:Landroid/graphics/Paint;

    .line 72
    new-instance v7, Landroid/graphics/Paint;

    invoke-direct {v7}, Landroid/graphics/Paint;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    .line 88
    new-instance v7, Ljava/util/ArrayList;

    const/16 v8, 0x9

    invoke-direct {v7, v8}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    .line 96
    filled-new-array {v11, v11}, [I

    move-result-object v7

    sget-object v8, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;

    invoke-static {v8, v7}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, [[Z

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDrawLookup:[[Z

    .line 103
    iput v12, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressX:F

    .line 104
    iput v12, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressY:F

    .line 108
    sget-object v7, Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;->Correct:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDisplayMode:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    .line 109
    iput-boolean v9, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInputEnabled:Z

    .line 110
    iput-boolean v10, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInStealthMode:Z

    .line 111
    iput-boolean v9, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEnableHapticFeedback:Z

    .line 112
    iput-boolean v10, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    .line 114
    const v7, 0x3dcccccd

    iput v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mDiameterFactor:F

    .line 115
    const/16 v7, 0x80

    iput v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mStrokeAlpha:I

    .line 116
    const v7, 0x3f19999a

    iput v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mHitFactor:F

    .line 130
    new-instance v7, Landroid/graphics/Path;

    invoke-direct {v7}, Landroid/graphics/Path;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mCurrentPath:Landroid/graphics/Path;

    .line 131
    new-instance v7, Landroid/graphics/Rect;

    invoke-direct {v7}, Landroid/graphics/Rect;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInvalidate:Landroid/graphics/Rect;

    .line 132
    new-instance v7, Landroid/graphics/Rect;

    invoke-direct {v7}, Landroid/graphics/Rect;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mTmpInvalidateRect:Landroid/graphics/Rect;

    .line 134
    new-instance v7, Landroid/graphics/PointF;

    invoke-direct {v7}, Landroid/graphics/PointF;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mIntersectionRet:Landroid/graphics/PointF;

    .line 135
    new-instance v7, Landroid/graphics/PointF;

    invoke-direct {v7}, Landroid/graphics/PointF;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mStartF:Landroid/graphics/PointF;

    .line 136
    new-instance v7, Landroid/graphics/PointF;

    invoke-direct {v7}, Landroid/graphics/PointF;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEndF:Landroid/graphics/PointF;

    .line 137
    new-instance v7, Landroid/graphics/PointF;

    invoke-direct {v7}, Landroid/graphics/PointF;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mCenterF:Landroid/graphics/PointF;

    .line 143
    new-instance v7, Landroid/graphics/Matrix;

    invoke-direct {v7}, Landroid/graphics/Matrix;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mArrowMatrix:Landroid/graphics/Matrix;

    .line 144
    new-instance v7, Landroid/graphics/Matrix;

    invoke-direct {v7}, Landroid/graphics/Matrix;-><init>()V

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mCircleMatrix:Landroid/graphics/Matrix;

    .line 253
    sget-object v7, Lcom/zuimeia/ui/R$styleable;->LockPatternView:[I

    invoke-virtual {p1, p2, v7}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 255
    .local v0, "a":Landroid/content/res/TypedArray;
    sget v7, Lcom/zuimeia/ui/R$styleable;->LockPatternView_aspect:I

    invoke-virtual {v0, v7}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 257
    .local v1, "aspect":Ljava/lang/String;
    const-string v7, "square"

    invoke-virtual {v7, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_116

    .line 258
    iput v10, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mAspect:I

    .line 267
    :goto_a2
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getResources()Landroid/content/res/Resources;

    move-result-object v7

    invoke-virtual {v7}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v6

    .line 268
    .local v6, "metrics":Landroid/util/DisplayMetrics;
    const/high16 v7, 0x40c00000

    invoke-static {v9, v7, v6}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v7

    float-to-int v7, v7

    iput v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mMinRadius:I

    .line 269
    const/high16 v7, 0x41d00000

    invoke-static {v9, v7, v6}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v7

    float-to-int v7, v7

    iput v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mMaxRadius:I

    .line 271
    invoke-virtual {p0, v9}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->setClickable(Z)V

    .line 273
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPaint:Landroid/graphics/Paint;

    invoke-virtual {v7, v9}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 274
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPaint:Landroid/graphics/Paint;

    invoke-virtual {v7, v9}, Landroid/graphics/Paint;->setDither(Z)V

    .line 275
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPaint:Landroid/graphics/Paint;

    sget-object v8, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 277
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    invoke-virtual {v7, v9}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 278
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    invoke-virtual {v7, v9}, Landroid/graphics/Paint;->setDither(Z)V

    .line 279
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    const/4 v8, -0x1

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setColor(I)V

    .line 281
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    sget-object v8, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 282
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    sget-object v8, Landroid/graphics/Paint$Join;->ROUND:Landroid/graphics/Paint$Join;

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStrokeJoin(Landroid/graphics/Paint$Join;)V

    .line 283
    iget-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    sget-object v8, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    .line 295
    invoke-static {}, Lcom/zuimeia/ui/lockpattern/LockPatternThemeUtils;->getRandomThemeColorsForPattern()[[I

    move-result-object v3

    .line 296
    .local v3, "colors":[[I
    const/4 v4, 0x0

    .local v4, "i":I
    :goto_fa
    if-ge v4, v11, :cond_135

    .line 297
    const/4 v5, 0x0

    .local v5, "j":I
    :goto_fd
    if-ge v5, v11, :cond_132

    .line 298
    invoke-static {v4, v5}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->of(II)Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    move-result-object v2

    .line 299
    .local v2, "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    iget v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mMinRadius:I

    int-to-float v7, v7

    iput v7, v2, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->radius:F

    .line 300
    iget v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mMinRadius:I

    int-to-float v7, v7

    iput v7, v2, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->smallRadius:F

    .line 301
    aget-object v7, v3, v4

    aget v7, v7, v5

    iput v7, v2, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->color:I

    .line 297
    add-int/lit8 v5, v5, 0x1

    goto :goto_fd

    .line 259
    .end local v2    # "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .end local v3    # "colors":[[I
    .end local v4    # "i":I
    .end local v5    # "j":I
    .end local v6    # "metrics":Landroid/util/DisplayMetrics;
    :cond_116
    const-string v7, "lock_width"

    invoke-virtual {v7, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_121

    .line 260
    iput v9, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mAspect:I

    goto :goto_a2

    .line 261
    :cond_121
    const-string v7, "lock_height"

    invoke-virtual {v7, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_12e

    .line 262
    const/4 v7, 0x2

    iput v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mAspect:I

    goto/16 :goto_a2

    .line 264
    :cond_12e
    iput v10, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mAspect:I

    goto/16 :goto_a2

    .line 296
    .restart local v3    # "colors":[[I
    .restart local v4    # "i":I
    .restart local v5    # "j":I
    .restart local v6    # "metrics":Landroid/util/DisplayMetrics;
    :cond_132
    add-int/lit8 v4, v4, 0x1

    goto :goto_fa

    .line 316
    .end local v5    # "j":I
    :cond_135
    return-void
.end method

.method private addCellToPattern(Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;)V
    .registers 11
    .param p1, "newCell"    # Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .prologue
    const/4 v8, 0x1

    const/high16 v2, 0x40000000

    .line 599
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDrawLookup:[[Z

    invoke-virtual {p1}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->getRow()I

    move-result v1

    aget-object v0, v0, v1

    invoke-virtual {p1}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->getColumn()I

    move-result v1

    aput-boolean v8, v0, v1

    .line 600
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 601
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->notifyCellAdded()V

    .line 603
    iget v0, p1, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v3

    .line 604
    .local v3, "startX":F
    iget v0, p1, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v5

    .line 606
    .local v5, "startY":F
    iget v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareWidth:F

    div-float v4, v0, v2

    .line 607
    .local v4, "widthOffset":F
    iget v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareHeight:F

    div-float v6, v0, v2

    .line 609
    .local v6, "heightOffset":F
    const/4 v0, 0x2

    new-array v0, v0, [F

    const/4 v1, 0x0

    iget v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mMinRadius:I

    int-to-float v2, v2

    aput v2, v0, v1

    iget v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mMaxRadius:I

    int-to-float v1, v1

    aput v1, v0, v8

    invoke-static {v0}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;

    move-result-object v7

    .line 610
    .local v7, "radiusAnimator":Landroid/animation/ValueAnimator;
    const-wide/16 v0, 0x12c

    invoke-virtual {v7, v0, v1}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 611
    new-instance v0, Landroid/view/animation/OvershootInterpolator;

    const/high16 v1, 0x40800000

    invoke-direct {v0, v1}, Landroid/view/animation/OvershootInterpolator;-><init>(F)V

    invoke-virtual {v7, v0}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 612
    new-instance v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$1;

    move-object v1, p0

    move-object v2, p1

    invoke-direct/range {v0 .. v6}, Lcom/zuimeia/ui/lockpattern/LockPatternView$1;-><init>(Lcom/zuimeia/ui/lockpattern/LockPatternView;Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;FFFF)V

    invoke-virtual {v7, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    .line 623
    invoke-virtual {v7}, Landroid/animation/ValueAnimator;->start()V

    .line 624
    return-void
.end method

.method private checkForNewHit(FF)Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .registers 7
    .param p1, "x"    # F
    .param p2, "y"    # F

    .prologue
    const/4 v2, 0x0

    .line 629
    invoke-direct {p0, p2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getRowHit(F)I

    move-result v1

    .line 630
    .local v1, "rowHit":I
    if-gez v1, :cond_8

    .line 641
    :cond_7
    :goto_7
    return-object v2

    .line 633
    :cond_8
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getColumnHit(F)I

    move-result v0

    .line 634
    .local v0, "columnHit":I
    if-ltz v0, :cond_7

    .line 638
    iget-object v3, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDrawLookup:[[Z

    aget-object v3, v3, v1

    aget-boolean v3, v3, v0

    if-nez v3, :cond_7

    .line 641
    invoke-static {v1, v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->of(II)Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    move-result-object v2

    goto :goto_7
.end method

.method private clearPatternDrawLookup()V
    .registers 6

    .prologue
    const/4 v4, 0x3

    .line 464
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_2
    if-ge v0, v4, :cond_14

    .line 465
    const/4 v1, 0x0

    .local v1, "j":I
    :goto_5
    if-ge v1, v4, :cond_11

    .line 466
    iget-object v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDrawLookup:[[Z

    aget-object v2, v2, v0

    const/4 v3, 0x0

    aput-boolean v3, v2, v1

    .line 465
    add-int/lit8 v1, v1, 0x1

    goto :goto_5

    .line 464
    :cond_11
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    .line 469
    .end local v1    # "j":I
    :cond_14
    return-void
.end method

.method private detectAndAddHit(FF)Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .registers 6
    .param p1, "x"    # F
    .param p2, "y"    # F

    .prologue
    .line 557
    invoke-direct {p0, p1, p2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->checkForNewHit(FF)Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    move-result-object v0

    .line 558
    .local v0, "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    if-eqz v0, :cond_13

    .line 587
    invoke-direct {p0, v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->addCellToPattern(Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;)V

    .line 588
    iget-boolean v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEnableHapticFeedback:Z

    if-eqz v1, :cond_12

    .line 589
    const/4 v1, 0x1

    const/4 v2, 0x3

    invoke-virtual {p0, v1, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->performHapticFeedback(II)Z

    .line 595
    .end local v0    # "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    :cond_12
    :goto_12
    return-object v0

    .restart local v0    # "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    :cond_13
    const/4 v0, 0x0

    goto :goto_12
.end method

.method private drawArrow(Landroid/graphics/Canvas;FFLcom/zuimeia/ui/lockpattern/LockPatternView$Cell;Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;)V
    .registers 6
    .param p1, "canvas"    # Landroid/graphics/Canvas;
    .param p2, "leftX"    # F
    .param p3, "topY"    # F
    .param p4, "start"    # Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .param p5, "end"    # Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .prologue
    .line 1100
    return-void
.end method

.method private drawCircle(Landroid/graphics/Canvas;IIZII)V
    .registers 13
    .param p1, "canvas"    # Landroid/graphics/Canvas;
    .param p2, "leftX"    # I
    .param p3, "topY"    # I
    .param p4, "partOfPattern"    # Z
    .param p5, "row"    # I
    .param p6, "column"    # I

    .prologue
    .line 1154
    invoke-direct {p0, p6}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v1

    .line 1155
    .local v1, "centerX":F
    invoke-direct {p0, p5}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v2

    .line 1157
    .local v2, "centerY":F
    invoke-static {p5, p6}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->of(II)Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    move-result-object v0

    .line 1159
    .local v0, "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    iget-boolean v4, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInStealthMode:Z

    if-eqz v4, :cond_1f

    .line 1160
    iget v3, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->smallRadius:F

    .line 1164
    .local v3, "radius":F
    :goto_12
    iget-object v4, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPaint:Landroid/graphics/Paint;

    iget v5, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->color:I

    invoke-virtual {v4, v5}, Landroid/graphics/Paint;->setColor(I)V

    .line 1165
    iget-object v4, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPaint:Landroid/graphics/Paint;

    invoke-virtual {p1, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 1166
    return-void

    .line 1162
    .end local v3    # "radius":F
    :cond_1f
    if-eqz p4, :cond_24

    iget v3, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->radius:F

    .restart local v3    # "radius":F
    :goto_23
    goto :goto_12

    .end local v3    # "radius":F
    :cond_24
    iget v3, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->smallRadius:F

    goto :goto_23
.end method

.method private getBitmapFor(I)Landroid/graphics/Bitmap;
    .registers 3
    .param p1, "resId"    # I

    .prologue
    .line 330
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-static {v0, p1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method private getCenterXForColumn(I)F
    .registers 5
    .param p1, "column"    # I

    .prologue
    .line 860
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingLeft()I

    move-result v0

    int-to-float v0, v0

    int-to-float v1, p1

    iget v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareWidth:F

    mul-float/2addr v1, v2

    add-float/2addr v0, v1

    iget v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareWidth:F

    const/high16 v2, 0x40000000

    div-float/2addr v1, v2

    add-float/2addr v0, v1

    return v0
.end method

.method private getCenterYForRow(I)F
    .registers 5
    .param p1, "row"    # I

    .prologue
    .line 865
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingTop()I

    move-result v0

    int-to-float v0, v0

    int-to-float v1, p1

    iget v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareHeight:F

    mul-float/2addr v1, v2

    add-float/2addr v0, v1

    iget v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareHeight:F

    const/high16 v2, 0x40000000

    div-float/2addr v1, v2

    add-float/2addr v0, v1

    return v0
.end method

.method private getColumnHit(F)I
    .registers 10
    .param p1, "x"    # F

    .prologue
    .line 672
    iget v4, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareWidth:F

    .line 673
    .local v4, "squareWidth":F
    iget v5, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mHitFactor:F

    mul-float v1, v4, v5

    .line 676
    .local v1, "hitSize":F
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingLeft()I

    move-result v5

    int-to-float v5, v5

    sub-float v6, v4, v1

    const/high16 v7, 0x40000000

    div-float/2addr v6, v7

    add-float v3, v5, v6

    .line 677
    .local v3, "offset":F
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_13
    const/4 v5, 0x3

    if-ge v2, v5, :cond_28

    .line 679
    int-to-float v5, v2

    mul-float/2addr v5, v4

    add-float v0, v3, v5

    .line 680
    .local v0, "hitLeft":F
    cmpl-float v5, p1, v0

    if-ltz v5, :cond_25

    add-float v5, v0, v1

    cmpg-float v5, p1, v5

    if-gtz v5, :cond_25

    .line 684
    .end local v0    # "hitLeft":F
    .end local v2    # "i":I
    :goto_24
    return v2

    .line 677
    .restart local v0    # "hitLeft":F
    .restart local v2    # "i":I
    :cond_25
    add-int/lit8 v2, v2, 0x1

    goto :goto_13

    .line 684
    .end local v0    # "hitLeft":F
    :cond_28
    const/4 v2, -0x1

    goto :goto_24
.end method

.method private getRowHit(F)I
    .registers 10
    .param p1, "y"    # F

    .prologue
    .line 651
    iget v4, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareHeight:F

    .line 652
    .local v4, "squareHeight":F
    iget v5, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mHitFactor:F

    mul-float v0, v4, v5

    .line 655
    .local v0, "hitSize":F
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingTop()I

    move-result v5

    int-to-float v5, v5

    sub-float v6, v4, v0

    const/high16 v7, 0x40000000

    div-float/2addr v6, v7

    add-float v3, v5, v6

    .line 656
    .local v3, "offset":F
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_13
    const/4 v5, 0x3

    if-ge v2, v5, :cond_28

    .line 658
    int-to-float v5, v2

    mul-float/2addr v5, v4

    add-float v1, v3, v5

    .line 659
    .local v1, "hitTop":F
    cmpl-float v5, p1, v1

    if-ltz v5, :cond_25

    add-float v5, v1, v0

    cmpg-float v5, p1, v5

    if-gtz v5, :cond_25

    .line 663
    .end local v1    # "hitTop":F
    .end local v2    # "i":I
    :goto_24
    return v2

    .line 656
    .restart local v1    # "hitTop":F
    .restart local v2    # "i":I
    :cond_25
    add-int/lit8 v2, v2, 0x1

    goto :goto_13

    .line 663
    .end local v1    # "hitTop":F
    :cond_28
    const/4 v2, -0x1

    goto :goto_24
.end method

.method private handleActionDown(Landroid/view/MotionEvent;)V
    .registers 13
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    const/high16 v8, 0x40000000

    .line 826
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->resetPattern()V

    .line 827
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v5

    .line 828
    .local v5, "x":F
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v6

    .line 829
    .local v6, "y":F
    invoke-direct {p0, v5, v6}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->detectAndAddHit(FF)Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    move-result-object v1

    .line 830
    .local v1, "hitCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    if-eqz v1, :cond_47

    .line 831
    const/4 v7, 0x1

    iput-boolean v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    .line 832
    sget-object v7, Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;->Correct:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    iput-object v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDisplayMode:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    .line 833
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->notifyPatternStarted()V

    .line 838
    :cond_1d
    :goto_1d
    if-eqz v1, :cond_42

    .line 839
    iget v7, v1, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    invoke-direct {p0, v7}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v2

    .line 840
    .local v2, "startX":F
    iget v7, v1, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    invoke-direct {p0, v7}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v3

    .line 842
    .local v3, "startY":F
    iget v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareWidth:F

    div-float v4, v7, v8

    .line 843
    .local v4, "widthOffset":F
    iget v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareHeight:F

    div-float v0, v7, v8

    .line 845
    .local v0, "heightOffset":F
    sub-float v7, v2, v4

    float-to-int v7, v7

    sub-float v8, v3, v0

    float-to-int v8, v8

    add-float v9, v2, v4

    float-to-int v9, v9

    add-float v10, v3, v0

    float-to-int v10, v10

    invoke-virtual {p0, v7, v8, v9, v10}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->invalidate(IIII)V

    .line 848
    .end local v0    # "heightOffset":F
    .end local v2    # "startX":F
    .end local v3    # "startY":F
    .end local v4    # "widthOffset":F
    :cond_42
    iput v5, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressX:F

    .line 849
    iput v6, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressY:F

    .line 856
    return-void

    .line 834
    :cond_47
    iget-boolean v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    if-eqz v7, :cond_1d

    .line 835
    const/4 v7, 0x0

    iput-boolean v7, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    .line 836
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->notifyPatternCleared()V

    goto :goto_1d
.end method

.method private handleActionMove(Landroid/view/MotionEvent;)V
    .registers 32
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 745
    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareWidth:F

    move/from16 v25, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mDiameterFactor:F

    move/from16 v26, v0

    mul-float v25, v25, v26

    const/high16 v26, 0x3f000000

    mul-float v19, v25, v26

    .line 746
    .local v19, "radius":F
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getHistorySize()I

    move-result v7

    .line 747
    .local v7, "historySize":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mTmpInvalidateRect:Landroid/graphics/Rect;

    move-object/from16 v25, v0

    invoke-virtual/range {v25 .. v25}, Landroid/graphics/Rect;->setEmpty()V

    .line 748
    const/4 v12, 0x0

    .line 749
    .local v12, "invalidateNow":Z
    const/4 v11, 0x0

    .local v11, "i":I
    :goto_21
    add-int/lit8 v25, v7, 0x1

    move/from16 v0, v25

    if-ge v11, v0, :cond_156

    .line 750
    if-ge v11, v7, :cond_14a

    move-object/from16 v0, p1

    invoke-virtual {v0, v11}, Landroid/view/MotionEvent;->getHistoricalX(I)F

    move-result v23

    .line 751
    .local v23, "x":F
    :goto_2f
    if-ge v11, v7, :cond_150

    move-object/from16 v0, p1

    invoke-virtual {v0, v11}, Landroid/view/MotionEvent;->getHistoricalY(I)F

    move-result v24

    .line 752
    .local v24, "y":F
    :goto_37
    move-object/from16 v0, p0

    move/from16 v1, v23

    move/from16 v2, v24

    invoke-direct {v0, v1, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->detectAndAddHit(FF)Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    move-result-object v8

    .line 753
    .local v8, "hitCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    move-object/from16 v25, v0

    invoke-virtual/range {v25 .. v25}, Ljava/util/ArrayList;->size()I

    move-result v18

    .line 754
    .local v18, "patternSize":I
    if-eqz v8, :cond_60

    const/16 v25, 0x1

    move/from16 v0, v18

    move/from16 v1, v25

    if-ne v0, v1, :cond_60

    .line 755
    const/16 v25, 0x1

    move/from16 v0, v25

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    .line 756
    invoke-direct/range {p0 .. p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->notifyPatternStarted()V

    .line 759
    :cond_60
    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressX:F

    move/from16 v25, v0

    sub-float v25, v23, v25

    invoke-static/range {v25 .. v25}, Ljava/lang/Math;->abs(F)F

    move-result v4

    .line 760
    .local v4, "dx":F
    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressY:F

    move/from16 v25, v0

    sub-float v25, v24, v25

    invoke-static/range {v25 .. v25}, Ljava/lang/Math;->abs(F)F

    move-result v5

    .line 761
    .local v5, "dy":F
    const/16 v25, 0x0

    cmpl-float v25, v4, v25

    if-gtz v25, :cond_84

    const/16 v25, 0x0

    cmpl-float v25, v5, v25

    if-lez v25, :cond_85

    .line 762
    :cond_84
    const/4 v12, 0x1

    .line 765
    :cond_85
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    move/from16 v25, v0

    if-eqz v25, :cond_146

    if-lez v18, :cond_146

    .line 766
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    move-object/from16 v17, v0

    .line 767
    .local v17, "pattern":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;>;"
    add-int/lit8 v25, v18, -0x1

    move-object/from16 v0, v17

    move/from16 v1, v25

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .line 768
    .local v13, "lastCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    iget v0, v13, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    move/from16 v25, v0

    move-object/from16 v0, p0

    move/from16 v1, v25

    invoke-direct {v0, v1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v14

    .line 769
    .local v14, "lastCellCenterX":F
    iget v0, v13, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    move/from16 v25, v0

    move-object/from16 v0, p0

    move/from16 v1, v25

    invoke-direct {v0, v1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v15

    .line 772
    .local v15, "lastCellCenterY":F
    move/from16 v0, v23

    invoke-static {v14, v0}, Ljava/lang/Math;->min(FF)F

    move-result v25

    sub-float v16, v25, v19

    .line 773
    .local v16, "left":F
    move/from16 v0, v23

    invoke-static {v14, v0}, Ljava/lang/Math;->max(FF)F

    move-result v25

    add-float v20, v25, v19

    .line 774
    .local v20, "right":F
    move/from16 v0, v24

    invoke-static {v15, v0}, Ljava/lang/Math;->min(FF)F

    move-result v25

    sub-float v21, v25, v19

    .line 775
    .local v21, "top":F
    move/from16 v0, v24

    invoke-static {v15, v0}, Ljava/lang/Math;->max(FF)F

    move-result v25

    add-float v3, v25, v19

    .line 778
    .local v3, "bottom":F
    if-eqz v8, :cond_12d

    .line 779
    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareWidth:F

    move/from16 v25, v0

    const/high16 v26, 0x3f000000

    mul-float v22, v25, v26

    .line 780
    .local v22, "width":F
    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareHeight:F

    move/from16 v25, v0

    const/high16 v26, 0x3f000000

    mul-float v6, v25, v26

    .line 781
    .local v6, "height":F
    iget v0, v8, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    move/from16 v25, v0

    move-object/from16 v0, p0

    move/from16 v1, v25

    invoke-direct {v0, v1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v9

    .line 782
    .local v9, "hitCellCenterX":F
    iget v0, v8, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    move/from16 v25, v0

    move-object/from16 v0, p0

    move/from16 v1, v25

    invoke-direct {v0, v1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v10

    .line 784
    .local v10, "hitCellCenterY":F
    sub-float v25, v9, v22

    move/from16 v0, v25

    move/from16 v1, v16

    invoke-static {v0, v1}, Ljava/lang/Math;->min(FF)F

    move-result v16

    .line 785
    add-float v25, v9, v22

    move/from16 v0, v25

    move/from16 v1, v20

    invoke-static {v0, v1}, Ljava/lang/Math;->max(FF)F

    move-result v20

    .line 786
    sub-float v25, v10, v6

    move/from16 v0, v25

    move/from16 v1, v21

    invoke-static {v0, v1}, Ljava/lang/Math;->min(FF)F

    move-result v21

    .line 787
    add-float v25, v10, v6

    move/from16 v0, v25

    invoke-static {v0, v3}, Ljava/lang/Math;->max(FF)F

    move-result v3

    .line 791
    .end local v6    # "height":F
    .end local v9    # "hitCellCenterX":F
    .end local v10    # "hitCellCenterY":F
    .end local v22    # "width":F
    :cond_12d
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mTmpInvalidateRect:Landroid/graphics/Rect;

    move-object/from16 v25, v0

    invoke-static/range {v16 .. v16}, Ljava/lang/Math;->round(F)I

    move-result v26

    invoke-static/range {v21 .. v21}, Ljava/lang/Math;->round(F)I

    move-result v27

    .line 792
    invoke-static/range {v20 .. v20}, Ljava/lang/Math;->round(F)I

    move-result v28

    invoke-static {v3}, Ljava/lang/Math;->round(F)I

    move-result v29

    .line 791
    invoke-virtual/range {v25 .. v29}, Landroid/graphics/Rect;->union(IIII)V

    .line 749
    .end local v3    # "bottom":F
    .end local v13    # "lastCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .end local v14    # "lastCellCenterX":F
    .end local v15    # "lastCellCenterY":F
    .end local v16    # "left":F
    .end local v17    # "pattern":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;>;"
    .end local v20    # "right":F
    .end local v21    # "top":F
    :cond_146
    add-int/lit8 v11, v11, 0x1

    goto/16 :goto_21

    .line 750
    .end local v4    # "dx":F
    .end local v5    # "dy":F
    .end local v8    # "hitCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .end local v18    # "patternSize":I
    .end local v23    # "x":F
    .end local v24    # "y":F
    :cond_14a
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F

    move-result v23

    goto/16 :goto_2f

    .line 751
    .restart local v23    # "x":F
    :cond_150
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F

    move-result v24

    goto/16 :goto_37

    .line 795
    .end local v23    # "x":F
    :cond_156
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F

    move-result v25

    move/from16 v0, v25

    move-object/from16 v1, p0

    iput v0, v1, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressX:F

    .line 796
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getY()F

    move-result v25

    move/from16 v0, v25

    move-object/from16 v1, p0

    iput v0, v1, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressY:F

    .line 799
    if-eqz v12, :cond_197

    .line 800
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInvalidate:Landroid/graphics/Rect;

    move-object/from16 v25, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mTmpInvalidateRect:Landroid/graphics/Rect;

    move-object/from16 v26, v0

    invoke-virtual/range {v25 .. v26}, Landroid/graphics/Rect;->union(Landroid/graphics/Rect;)V

    .line 801
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInvalidate:Landroid/graphics/Rect;

    move-object/from16 v25, v0

    move-object/from16 v0, p0

    move-object/from16 v1, v25

    invoke-virtual {v0, v1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->invalidate(Landroid/graphics/Rect;)V

    .line 802
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInvalidate:Landroid/graphics/Rect;

    move-object/from16 v25, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mTmpInvalidateRect:Landroid/graphics/Rect;

    move-object/from16 v26, v0

    invoke-virtual/range {v25 .. v26}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V

    .line 804
    :cond_197
    return-void
.end method

.method private handleActionUp(Landroid/view/MotionEvent;)V
    .registers 3
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 812
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_11

    .line 813
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    .line 814
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->notifyPatternDetected()V

    .line 815
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->invalidate()V

    .line 823
    :cond_11
    return-void
.end method

.method private lineInterCircle(Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;FLandroid/graphics/PointF;)Z
    .registers 22
    .param p1, "lineStart"    # Landroid/graphics/PointF;
    .param p2, "lineEnd"    # Landroid/graphics/PointF;
    .param p3, "circleCenter"    # Landroid/graphics/PointF;
    .param p4, "radius"    # F
    .param p5, "retIntersection"    # Landroid/graphics/PointF;

    .prologue
    .line 1170
    const/high16 v12, -0x40800000

    move-object/from16 v0, p5

    iput v12, v0, Landroid/graphics/PointF;->x:F

    .line 1171
    const/high16 v12, -0x40800000

    move-object/from16 v0, p5

    iput v12, v0, Landroid/graphics/PointF;->y:F

    .line 1173
    move-object/from16 v0, p2

    iget v12, v0, Landroid/graphics/PointF;->x:F

    move-object/from16 v0, p1

    iget v13, v0, Landroid/graphics/PointF;->x:F

    sub-float/2addr v12, v13

    move-object/from16 v0, p2

    iget v13, v0, Landroid/graphics/PointF;->x:F

    move-object/from16 v0, p1

    iget v14, v0, Landroid/graphics/PointF;->x:F

    sub-float/2addr v13, v14

    mul-float/2addr v12, v13

    move-object/from16 v0, p2

    iget v13, v0, Landroid/graphics/PointF;->y:F

    move-object/from16 v0, p1

    iget v14, v0, Landroid/graphics/PointF;->y:F

    sub-float/2addr v13, v14

    move-object/from16 v0, p2

    iget v14, v0, Landroid/graphics/PointF;->y:F

    move-object/from16 v0, p1

    iget v15, v0, Landroid/graphics/PointF;->y:F

    sub-float/2addr v14, v15

    mul-float/2addr v13, v14

    add-float/2addr v12, v13

    float-to-double v12, v12

    invoke-static {v12, v13}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v12

    double-to-float v8, v12

    .line 1175
    .local v8, "fDis":F
    new-instance v5, Landroid/graphics/PointF;

    invoke-direct {v5}, Landroid/graphics/PointF;-><init>()V

    .line 1176
    .local v5, "d":Landroid/graphics/PointF;
    move-object/from16 v0, p2

    iget v12, v0, Landroid/graphics/PointF;->x:F

    move-object/from16 v0, p1

    iget v13, v0, Landroid/graphics/PointF;->x:F

    sub-float/2addr v12, v13

    div-float/2addr v12, v8

    iput v12, v5, Landroid/graphics/PointF;->x:F

    .line 1177
    move-object/from16 v0, p2

    iget v12, v0, Landroid/graphics/PointF;->y:F

    move-object/from16 v0, p1

    iget v13, v0, Landroid/graphics/PointF;->y:F

    sub-float/2addr v12, v13

    div-float/2addr v12, v8

    iput v12, v5, Landroid/graphics/PointF;->y:F

    .line 1179
    new-instance v2, Landroid/graphics/PointF;

    invoke-direct {v2}, Landroid/graphics/PointF;-><init>()V

    .line 1180
    .local v2, "E":Landroid/graphics/PointF;
    move-object/from16 v0, p3

    iget v12, v0, Landroid/graphics/PointF;->x:F

    move-object/from16 v0, p1

    iget v13, v0, Landroid/graphics/PointF;->x:F

    sub-float/2addr v12, v13

    iput v12, v2, Landroid/graphics/PointF;->x:F

    .line 1181
    move-object/from16 v0, p3

    iget v12, v0, Landroid/graphics/PointF;->y:F

    move-object/from16 v0, p1

    iget v13, v0, Landroid/graphics/PointF;->y:F

    sub-float/2addr v12, v13

    iput v12, v2, Landroid/graphics/PointF;->y:F

    .line 1183
    iget v12, v2, Landroid/graphics/PointF;->x:F

    iget v13, v5, Landroid/graphics/PointF;->x:F

    mul-float/2addr v12, v13

    iget v13, v2, Landroid/graphics/PointF;->y:F

    iget v14, v5, Landroid/graphics/PointF;->y:F

    mul-float/2addr v13, v14

    add-float v3, v12, v13

    .line 1184
    .local v3, "a":F
    mul-float v4, v3, v3

    .line 1186
    .local v4, "a2":F
    iget v12, v2, Landroid/graphics/PointF;->x:F

    iget v13, v2, Landroid/graphics/PointF;->x:F

    mul-float/2addr v12, v13

    iget v13, v2, Landroid/graphics/PointF;->y:F

    iget v14, v2, Landroid/graphics/PointF;->y:F

    mul-float/2addr v13, v14

    add-float v6, v12, v13

    .line 1188
    .local v6, "e2":F
    mul-float v10, p4, p4

    .line 1190
    .local v10, "r2":F
    sub-float v12, v10, v6

    add-float/2addr v12, v4

    const/4 v13, 0x0

    cmpg-float v12, v12, v13

    if-gez v12, :cond_97

    .line 1192
    const/4 v9, 0x0

    .line 1220
    :cond_96
    :goto_96
    return v9

    .line 1196
    :cond_97
    const/4 v9, 0x0

    .line 1198
    .local v9, "outCircle":Z
    sub-float v12, v10, v6

    add-float/2addr v12, v4

    float-to-double v12, v12

    invoke-static {v12, v13}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v12

    double-to-float v7, v12

    .line 1200
    .local v7, "f":F
    sub-float v11, v3, v7

    .line 1202
    .local v11, "t":F
    float-to-double v12, v11

    const-wide/16 v14, 0x0

    sub-double/2addr v12, v14

    const-wide v14, -0x411b074a80000000L

    cmpl-double v12, v12, v14

    if-lez v12, :cond_d2

    sub-float v12, v11, v8

    const v13, 0x3727c5ac

    cmpg-float v12, v12, v13

    if-gez v12, :cond_d2

    .line 1204
    move-object/from16 v0, p1

    iget v12, v0, Landroid/graphics/PointF;->x:F

    iget v13, v5, Landroid/graphics/PointF;->x:F

    mul-float/2addr v13, v11

    add-float/2addr v12, v13

    move-object/from16 v0, p5

    iput v12, v0, Landroid/graphics/PointF;->x:F

    .line 1205
    move-object/from16 v0, p1

    iget v12, v0, Landroid/graphics/PointF;->y:F

    iget v13, v5, Landroid/graphics/PointF;->y:F

    mul-float/2addr v13, v11

    add-float/2addr v12, v13

    move-object/from16 v0, p5

    iput v12, v0, Landroid/graphics/PointF;->y:F

    .line 1207
    const/4 v9, 0x1

    .line 1210
    :cond_d2
    add-float v11, v3, v7

    .line 1212
    float-to-double v12, v11

    const-wide/16 v14, 0x0

    sub-double/2addr v12, v14

    const-wide v14, -0x411b074a80000000L

    cmpl-double v12, v12, v14

    if-lez v12, :cond_96

    sub-float v12, v11, v8

    const v13, 0x3727c5ac

    cmpg-float v12, v12, v13

    if-gez v12, :cond_96

    .line 1214
    move-object/from16 v0, p1

    iget v12, v0, Landroid/graphics/PointF;->x:F

    iget v13, v5, Landroid/graphics/PointF;->x:F

    mul-float/2addr v13, v11

    add-float/2addr v12, v13

    move-object/from16 v0, p5

    iput v12, v0, Landroid/graphics/PointF;->x:F

    .line 1215
    move-object/from16 v0, p1

    iget v12, v0, Landroid/graphics/PointF;->y:F

    iget v13, v5, Landroid/graphics/PointF;->y:F

    mul-float/2addr v13, v11

    add-float/2addr v12, v13

    move-object/from16 v0, p5

    iput v12, v0, Landroid/graphics/PointF;->y:F

    .line 1217
    const/4 v9, 0x1

    goto :goto_96
.end method

.method private notifyCellAdded()V
    .registers 3

    .prologue
    .line 417
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    if-eqz v0, :cond_b

    .line 418
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    invoke-interface {v0, v1}, Lcom/zuimeia/ui/lockpattern/OnPatternListener;->onPatternCellAdded(Ljava/util/List;)V

    .line 420
    :cond_b
    return-void
.end method

.method private notifyPatternCleared()V
    .registers 2

    .prologue
    .line 438
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    if-eqz v0, :cond_9

    .line 439
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    invoke-interface {v0}, Lcom/zuimeia/ui/lockpattern/OnPatternListener;->onPatternCleared()V

    .line 441
    :cond_9
    return-void
.end method

.method private notifyPatternDetected()V
    .registers 3

    .prologue
    .line 431
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    if-eqz v0, :cond_b

    .line 432
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    invoke-interface {v0, v1}, Lcom/zuimeia/ui/lockpattern/OnPatternListener;->onPatternDetected(Ljava/util/List;)V

    .line 434
    :cond_b
    return-void
.end method

.method private notifyPatternStarted()V
    .registers 2

    .prologue
    .line 424
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    if-eqz v0, :cond_9

    .line 425
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    invoke-interface {v0}, Lcom/zuimeia/ui/lockpattern/OnPatternListener;->onPatternStart()V

    .line 427
    :cond_9
    return-void
.end method

.method private resetPattern()V
    .registers 2

    .prologue
    .line 454
    iget-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 455
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->clearPatternDrawLookup()V

    .line 456
    sget-object v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;->Correct:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    iput-object v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDisplayMode:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    .line 457
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->invalidate()V

    .line 458
    return-void
.end method

.method private resolveMeasured(II)I
    .registers 6
    .param p1, "measureSpec"    # I
    .param p2, "desired"    # I

    .prologue
    .line 499
    const/4 v0, 0x0

    .line 500
    .local v0, "result":I
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v1

    .line 501
    .local v1, "specSize":I
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v2

    sparse-switch v2, :sswitch_data_16

    .line 510
    move v0, v1

    .line 512
    :goto_d
    return v0

    .line 503
    :sswitch_e
    move v0, p2

    .line 504
    goto :goto_d

    .line 506
    :sswitch_10
    invoke-static {v1, p2}, Ljava/lang/Math;->max(II)I

    move-result v0

    .line 507
    goto :goto_d

    .line 501
    nop

    :sswitch_data_16
    .sparse-switch
        -0x80000000 -> :sswitch_10
        0x0 -> :sswitch_e
    .end sparse-switch
.end method


# virtual methods
.method public clearPattern()V
    .registers 1

    .prologue
    .line 447
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->resetPattern()V

    .line 448
    return-void
.end method

.method public disableInput()V
    .registers 2

    .prologue
    .line 476
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInputEnabled:Z

    .line 477
    return-void
.end method

.method public enableInput()V
    .registers 2

    .prologue
    .line 483
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInputEnabled:Z

    .line 484
    return-void
.end method

.method protected getSuggestedMinimumHeight()I
    .registers 2

    .prologue
    .line 524
    iget v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mBitmapWidth:I

    mul-int/lit8 v0, v0, 0x3

    return v0
.end method

.method protected getSuggestedMinimumWidth()I
    .registers 2

    .prologue
    .line 518
    iget v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mBitmapWidth:I

    mul-int/lit8 v0, v0, 0x3

    return v0
.end method

.method public isInStealthMode()Z
    .registers 2

    .prologue
    .line 337
    iget-boolean v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInStealthMode:Z

    return v0
.end method

.method public isTactileFeedbackEnabled()Z
    .registers 2

    .prologue
    .line 344
    iget-boolean v0, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEnableHapticFeedback:Z

    return v0
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .registers 60
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 870
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    move-object/from16 v51, v0

    .line 871
    .local v51, "pattern":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;>;"
    invoke-virtual/range {v51 .. v51}, Ljava/util/ArrayList;->size()I

    move-result v30

    .line 872
    .local v30, "count":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDrawLookup:[[Z

    move-object/from16 v35, v0

    .line 874
    .local v35, "drawLookup":[[Z
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDisplayMode:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    sget-object v3, Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;->Animate:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    if-ne v2, v3, :cond_b8

    .line 879
    add-int/lit8 v2, v30, 0x1

    mul-int/lit16 v0, v2, 0x2bc

    move/from16 v48, v0

    .line 880
    .local v48, "oneCycle":I
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    move-object/from16 v0, p0

    iget-wide v4, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mAnimatingPeriodStart:J

    sub-long/2addr v2, v4

    long-to-int v2, v2

    rem-int v54, v2, v48

    .line 882
    .local v54, "spotInCycle":I
    move/from16 v0, v54

    div-int/lit16 v0, v0, 0x2bc

    move/from16 v46, v0

    .line 884
    .local v46, "numCircles":I
    invoke-direct/range {p0 .. p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->clearPatternDrawLookup()V

    .line 885
    const/4 v7, 0x0

    .local v7, "i":I
    :goto_34
    move/from16 v0, v46

    if-ge v7, v0, :cond_50

    .line 886
    move-object/from16 v0, v51

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v27

    check-cast v27, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .line 887
    .local v27, "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    invoke-virtual/range {v27 .. v27}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->getRow()I

    move-result v2

    aget-object v2, v35, v2

    invoke-virtual/range {v27 .. v27}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->getColumn()I

    move-result v3

    const/4 v4, 0x1

    aput-boolean v4, v2, v3

    .line 885
    add-int/lit8 v7, v7, 0x1

    goto :goto_34

    .line 892
    .end local v27    # "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    :cond_50
    if-lez v46, :cond_114

    move/from16 v0, v46

    move/from16 v1, v30

    if-ge v0, v1, :cond_114

    const/16 v44, 0x1

    .line 895
    .local v44, "needToUpdateInProgressPoint":Z
    :goto_5a
    if-eqz v44, :cond_b5

    .line 896
    move/from16 v0, v54

    rem-int/lit16 v2, v0, 0x2bc

    int-to-float v2, v2

    const/high16 v3, 0x442f0000

    div-float v52, v2, v3

    .line 900
    .local v52, "percentageOfNextCircle":F
    add-int/lit8 v2, v46, -0x1

    move-object/from16 v0, v51

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v33

    check-cast v33, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .line 901
    .local v33, "currentCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    move-object/from16 v0, v33

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v28

    .line 902
    .local v28, "centerX":F
    move-object/from16 v0, v33

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v29

    .line 904
    .local v29, "centerY":F
    move-object/from16 v0, v51

    move/from16 v1, v46

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v45

    check-cast v45, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .line 905
    .local v45, "nextCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    move-object/from16 v0, v45

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    .line 906
    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v2

    sub-float v2, v2, v28

    mul-float v37, v52, v2

    .line 907
    .local v37, "dx":F
    move-object/from16 v0, v45

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    .line 908
    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v2

    sub-float v2, v2, v29

    mul-float v38, v52, v2

    .line 909
    .local v38, "dy":F
    add-float v2, v28, v37

    move-object/from16 v0, p0

    iput v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressX:F

    .line 910
    add-float v2, v29, v38

    move-object/from16 v0, p0

    iput v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressY:F

    .line 913
    .end local v28    # "centerX":F
    .end local v29    # "centerY":F
    .end local v33    # "currentCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .end local v37    # "dx":F
    .end local v38    # "dy":F
    .end local v45    # "nextCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .end local v52    # "percentageOfNextCircle":F
    :cond_b5
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->invalidate()V

    .line 916
    .end local v7    # "i":I
    .end local v44    # "needToUpdateInProgressPoint":Z
    .end local v46    # "numCircles":I
    .end local v48    # "oneCycle":I
    .end local v54    # "spotInCycle":I
    :cond_b8
    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareWidth:F

    move/from16 v56, v0

    .line 917
    .local v56, "squareWidth":F
    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareHeight:F

    move/from16 v55, v0

    .line 919
    .local v55, "squareHeight":F
    move-object/from16 v0, p0

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mDiameterFactor:F

    mul-float v2, v2, v56

    const/high16 v3, 0x3f000000

    mul-float v53, v2, v3

    .line 920
    .local v53, "radius":F
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    move/from16 v0, v53

    invoke-virtual {v2, v0}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 922
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mCurrentPath:Landroid/graphics/Path;

    move-object/from16 v34, v0

    .line 923
    .local v34, "currentPath":Landroid/graphics/Path;
    invoke-virtual/range {v34 .. v34}, Landroid/graphics/Path;->rewind()V

    .line 928
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingTop()I

    move-result v50

    .line 929
    .local v50, "paddingTop":I
    invoke-virtual/range {p0 .. p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingLeft()I

    move-result v49

    .line 931
    .local v49, "paddingLeft":I
    const/4 v7, 0x0

    .restart local v7    # "i":I
    :goto_e9
    const/4 v2, 0x3

    if-ge v7, v2, :cond_11b

    .line 932
    move/from16 v0, v50

    int-to-float v2, v0

    int-to-float v3, v7

    mul-float v3, v3, v55

    add-float v57, v2, v3

    .line 934
    .local v57, "topY":F
    const/4 v8, 0x0

    .local v8, "j":I
    :goto_f5
    const/4 v2, 0x3

    if-ge v8, v2, :cond_118

    .line 935
    move/from16 v0, v49

    int-to-float v2, v0

    int-to-float v3, v8

    mul-float v3, v3, v56

    add-float v43, v2, v3

    .line 936
    .local v43, "leftX":F
    move/from16 v0, v43

    float-to-int v4, v0

    move/from16 v0, v57

    float-to-int v5, v0

    aget-object v2, v35, v7

    aget-boolean v6, v2, v8

    move-object/from16 v2, p0

    move-object/from16 v3, p1

    invoke-direct/range {v2 .. v8}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->drawCircle(Landroid/graphics/Canvas;IIZII)V

    .line 934
    add-int/lit8 v8, v8, 0x1

    goto :goto_f5

    .line 892
    .end local v8    # "j":I
    .end local v34    # "currentPath":Landroid/graphics/Path;
    .end local v43    # "leftX":F
    .end local v49    # "paddingLeft":I
    .end local v50    # "paddingTop":I
    .end local v53    # "radius":F
    .end local v55    # "squareHeight":F
    .end local v56    # "squareWidth":F
    .end local v57    # "topY":F
    .restart local v46    # "numCircles":I
    .restart local v48    # "oneCycle":I
    .restart local v54    # "spotInCycle":I
    :cond_114
    const/16 v44, 0x0

    goto/16 :goto_5a

    .line 931
    .end local v46    # "numCircles":I
    .end local v48    # "oneCycle":I
    .end local v54    # "spotInCycle":I
    .restart local v8    # "j":I
    .restart local v34    # "currentPath":Landroid/graphics/Path;
    .restart local v49    # "paddingLeft":I
    .restart local v50    # "paddingTop":I
    .restart local v53    # "radius":F
    .restart local v55    # "squareHeight":F
    .restart local v56    # "squareWidth":F
    .restart local v57    # "topY":F
    :cond_118
    add-int/lit8 v7, v7, 0x1

    goto :goto_e9

    .line 945
    .end local v8    # "j":I
    .end local v57    # "topY":F
    :cond_11b
    move-object/from16 v0, p0

    iget-boolean v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInStealthMode:Z

    if-nez v2, :cond_211

    const/16 v36, 0x1

    .line 949
    .local v36, "drawPath":Z
    :goto_123
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPaint:Landroid/graphics/Paint;

    invoke-virtual {v2}, Landroid/graphics/Paint;->getFlags()I

    move-result v2

    and-int/lit8 v2, v2, 0x2

    if-eqz v2, :cond_215

    const/16 v47, 0x1

    .line 970
    .local v47, "oldFlag":Z
    :goto_131
    if-eqz v36, :cond_207

    .line 971
    const/16 v26, 0x0

    .line 972
    .local v26, "anyCircles":Z
    const/4 v7, 0x0

    :goto_136
    move/from16 v0, v30

    if-ge v7, v0, :cond_150

    .line 973
    move-object/from16 v0, v51

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v27

    check-cast v27, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .line 978
    .restart local v27    # "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    move-object/from16 v0, v27

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    aget-object v2, v35, v2

    move-object/from16 v0, v27

    iget v3, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    aget-boolean v2, v2, v3

    if-nez v2, :cond_219

    .line 1041
    .end local v27    # "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    :cond_150
    move-object/from16 v0, p0

    iget-boolean v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    if-nez v2, :cond_15e

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDisplayMode:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    sget-object v3, Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;->Animate:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    if-ne v2, v3, :cond_207

    :cond_15e
    if-eqz v26, :cond_207

    .line 1044
    invoke-virtual/range {v51 .. v51}, Ljava/util/ArrayList;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    move-object/from16 v0, v51

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v40

    check-cast v40, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .line 1045
    .local v40, "lastCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    move-object/from16 v0, v40

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v41

    .line 1046
    .local v41, "lastX":F
    move-object/from16 v0, v40

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v42

    .line 1048
    .local v42, "lastY":F
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mStartF:Landroid/graphics/PointF;

    move/from16 v0, v41

    move/from16 v1, v42

    invoke-virtual {v2, v0, v1}, Landroid/graphics/PointF;->set(FF)V

    .line 1049
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEndF:Landroid/graphics/PointF;

    move-object/from16 v0, p0

    iget v3, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressX:F

    move-object/from16 v0, p0

    iget v4, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressY:F

    invoke-virtual {v2, v3, v4}, Landroid/graphics/PointF;->set(FF)V

    .line 1050
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mCenterF:Landroid/graphics/PointF;

    move/from16 v0, v41

    move/from16 v1, v42

    invoke-virtual {v2, v0, v1}, Landroid/graphics/PointF;->set(FF)V

    .line 1051
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mStartF:Landroid/graphics/PointF;

    move-object/from16 v21, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEndF:Landroid/graphics/PointF;

    move-object/from16 v22, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mCenterF:Landroid/graphics/PointF;

    move-object/from16 v23, v0

    move-object/from16 v0, v40

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->radius:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mIntersectionRet:Landroid/graphics/PointF;

    move-object/from16 v25, v0

    move-object/from16 v20, p0

    invoke-direct/range {v20 .. v25}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->lineInterCircle(Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;FLandroid/graphics/PointF;)Z

    move-result v39

    .line 1052
    .local v39, "hasIntersection":Z
    if-eqz v39, :cond_207

    .line 1053
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;

    .line 1054
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    move-object/from16 v0, v40

    iget v3, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->color:I

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setColor(I)V

    .line 1056
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mIntersectionRet:Landroid/graphics/PointF;

    iget v0, v2, Landroid/graphics/PointF;->x:F

    move/from16 v21, v0

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mIntersectionRet:Landroid/graphics/PointF;

    iget v0, v2, Landroid/graphics/PointF;->y:F

    move/from16 v22, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressX:F

    move/from16 v23, v0

    move-object/from16 v0, p0

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressY:F

    move/from16 v24, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    move-object/from16 v25, v0

    move-object/from16 v20, p1

    invoke-virtual/range {v20 .. v25}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 1063
    .end local v26    # "anyCircles":Z
    .end local v39    # "hasIntersection":Z
    .end local v40    # "lastCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .end local v41    # "lastX":F
    .end local v42    # "lastY":F
    :cond_207
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPaint:Landroid/graphics/Paint;

    move/from16 v0, v47

    invoke-virtual {v2, v0}, Landroid/graphics/Paint;->setFilterBitmap(Z)V

    .line 1064
    return-void

    .line 945
    .end local v36    # "drawPath":Z
    .end local v47    # "oldFlag":Z
    :cond_211
    const/16 v36, 0x0

    goto/16 :goto_123

    .line 949
    .restart local v36    # "drawPath":Z
    :cond_215
    const/16 v47, 0x0

    goto/16 :goto_131

    .line 981
    .restart local v26    # "anyCircles":Z
    .restart local v27    # "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    .restart local v47    # "oldFlag":Z
    :cond_219
    const/16 v26, 0x1

    .line 991
    if-nez v7, :cond_221

    .line 972
    :goto_21d
    add-int/lit8 v7, v7, 0x1

    goto/16 :goto_136

    .line 994
    :cond_221
    add-int/lit8 v2, v7, -0x1

    move-object/from16 v0, v51

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v40

    check-cast v40, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .line 995
    .restart local v40    # "lastCell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    move-object/from16 v0, v40

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v41

    .line 996
    .restart local v41    # "lastX":F
    move-object/from16 v0, v40

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v42

    .line 997
    .restart local v42    # "lastY":F
    move-object/from16 v0, v27

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->column:I

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v31

    .line 998
    .local v31, "curX":F
    move-object/from16 v0, v27

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->row:I

    move-object/from16 v0, p0

    invoke-direct {v0, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v32

    .line 1000
    .local v32, "curY":F
    move-object/from16 v0, p0

    iget-object v14, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mIntersectionRet:Landroid/graphics/PointF;

    .line 1001
    .local v14, "intersection":Landroid/graphics/PointF;
    move-object/from16 v0, p0

    iget-object v10, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mStartF:Landroid/graphics/PointF;

    .line 1002
    .local v10, "startF":Landroid/graphics/PointF;
    move-object/from16 v0, p0

    iget-object v11, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEndF:Landroid/graphics/PointF;

    .line 1003
    .local v11, "endF":Landroid/graphics/PointF;
    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mCenterF:Landroid/graphics/PointF;

    .line 1005
    .local v12, "centerF":Landroid/graphics/PointF;
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mStartF:Landroid/graphics/PointF;

    move/from16 v0, v41

    move/from16 v1, v42

    invoke-virtual {v2, v0, v1}, Landroid/graphics/PointF;->set(FF)V

    .line 1006
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEndF:Landroid/graphics/PointF;

    move/from16 v0, v31

    move/from16 v1, v32

    invoke-virtual {v2, v0, v1}, Landroid/graphics/PointF;->set(FF)V

    .line 1007
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mCenterF:Landroid/graphics/PointF;

    move/from16 v0, v41

    move/from16 v1, v42

    invoke-virtual {v2, v0, v1}, Landroid/graphics/PointF;->set(FF)V

    .line 1009
    move-object/from16 v0, v40

    iget v13, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->radius:F

    move-object/from16 v9, p0

    invoke-direct/range {v9 .. v14}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->lineInterCircle(Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;FLandroid/graphics/PointF;)Z

    .line 1010
    iget v0, v14, Landroid/graphics/PointF;->x:F

    move/from16 v16, v0

    .line 1011
    .local v16, "startX":F
    iget v0, v14, Landroid/graphics/PointF;->y:F

    move/from16 v17, v0

    .line 1013
    .local v17, "startY":F
    move/from16 v0, v31

    move/from16 v1, v32

    invoke-virtual {v12, v0, v1}, Landroid/graphics/PointF;->set(FF)V

    .line 1014
    move-object/from16 v0, v27

    iget v13, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->radius:F

    move-object/from16 v9, p0

    invoke-direct/range {v9 .. v14}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->lineInterCircle(Landroid/graphics/PointF;Landroid/graphics/PointF;Landroid/graphics/PointF;FLandroid/graphics/PointF;)Z

    .line 1015
    iget v0, v14, Landroid/graphics/PointF;->x:F

    move/from16 v18, v0

    .line 1016
    .local v18, "endX":F
    iget v0, v14, Landroid/graphics/PointF;->y:F

    move/from16 v19, v0

    .line 1018
    .local v19, "endY":F
    move-object/from16 v0, v27

    iget v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->color:I

    invoke-static {v2}, Landroid/graphics/Color;->alpha(I)I

    move-result v2

    const/16 v3, 0xff

    if-ge v2, v3, :cond_2f1

    .line 1019
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Cap;->BUTT:Landroid/graphics/Paint$Cap;

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    .line 1024
    :goto_2c2
    new-instance v15, Landroid/graphics/LinearGradient;

    move-object/from16 v0, v40

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->color:I

    move/from16 v20, v0

    move-object/from16 v0, v27

    iget v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->color:I

    move/from16 v21, v0

    sget-object v22, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;

    invoke-direct/range {v15 .. v22}, Landroid/graphics/LinearGradient;-><init>(FFFFIILandroid/graphics/Shader$TileMode;)V

    .line 1025
    .local v15, "mShader":Landroid/graphics/Shader;
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    invoke-virtual {v2, v15}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;

    .line 1026
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    move-object/from16 v25, v0

    move-object/from16 v20, p1

    move/from16 v21, v16

    move/from16 v22, v17

    move/from16 v23, v18

    move/from16 v24, v19

    invoke-virtual/range {v20 .. v25}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    goto/16 :goto_21d

    .line 1021
    .end local v15    # "mShader":Landroid/graphics/Shader;
    :cond_2f1
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPathPaint:Landroid/graphics/Paint;

    sget-object v3, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    goto :goto_2c2
.end method

.method public onHoverEvent(Landroid/view/MotionEvent;)Z
    .registers 4
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    .line 691
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 692
    .local v0, "action":I
    packed-switch v0, :pswitch_data_22

    .line 703
    :goto_7
    :pswitch_7
    invoke-virtual {p0, p1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->onTouchEvent(Landroid/view/MotionEvent;)Z

    .line 704
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->setAction(I)V

    .line 706
    invoke-super {p0, p1}, Landroid/view/View;->onHoverEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    return v1

    .line 694
    :pswitch_12
    const/4 v1, 0x0

    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->setAction(I)V

    goto :goto_7

    .line 697
    :pswitch_17
    const/4 v1, 0x2

    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->setAction(I)V

    goto :goto_7

    .line 700
    :pswitch_1c
    const/4 v1, 0x1

    invoke-virtual {p1, v1}, Landroid/view/MotionEvent;->setAction(I)V

    goto :goto_7

    .line 692
    nop

    :pswitch_data_22
    .packed-switch 0x7
        :pswitch_17
        :pswitch_7
        :pswitch_12
        :pswitch_1c
    .end packed-switch
.end method

.method protected onMeasure(II)V
    .registers 8
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .prologue
    .line 529
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getSuggestedMinimumWidth()I

    move-result v1

    .line 530
    .local v1, "minimumWidth":I
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getSuggestedMinimumHeight()I

    move-result v0

    .line 531
    .local v0, "minimumHeight":I
    invoke-direct {p0, p1, v1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->resolveMeasured(II)I

    move-result v3

    .line 532
    .local v3, "viewWidth":I
    invoke-direct {p0, p2, v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->resolveMeasured(II)I

    move-result v2

    .line 534
    .local v2, "viewHeight":I
    iget v4, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mAspect:I

    packed-switch v4, :pswitch_data_2a

    .line 546
    :goto_15
    invoke-virtual {p0, v3, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->setMeasuredDimension(II)V

    .line 547
    return-void

    .line 536
    :pswitch_19
    invoke-static {v3, v2}, Ljava/lang/Math;->min(II)I

    move-result v2

    move v3, v2

    .line 537
    goto :goto_15

    .line 539
    :pswitch_1f
    invoke-static {v3, v2}, Ljava/lang/Math;->min(II)I

    move-result v2

    .line 540
    goto :goto_15

    .line 542
    :pswitch_24
    invoke-static {v3, v2}, Ljava/lang/Math;->min(II)I

    move-result v3

    goto :goto_15

    .line 534
    nop

    :pswitch_data_2a
    .packed-switch 0x0
        :pswitch_19
        :pswitch_1f
        :pswitch_24
    .end packed-switch
.end method

.method protected onRestoreInstanceState(Landroid/os/Parcelable;)V
    .registers 5
    .param p1, "state"    # Landroid/os/Parcelable;

    .prologue
    .line 1236
    move-object v0, p1

    check-cast v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;

    .line 1237
    .local v0, "ss":Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;
    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;->getSuperState()Landroid/os/Parcelable;

    move-result-object v1

    invoke-super {p0, v1}, Landroid/view/View;->onRestoreInstanceState(Landroid/os/Parcelable;)V

    .line 1238
    sget-object v1, Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;->Correct:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    .line 1240
    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;->getSerializedPattern()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/zuimeia/ui/lockpattern/LockPatternUtils;->stringToPattern(Ljava/lang/String;)Ljava/util/List;

    move-result-object v2

    .line 1238
    invoke-virtual {p0, v1, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->setPattern(Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;Ljava/util/List;)V

    .line 1241
    invoke-static {}, Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;->values()[Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    move-result-object v1

    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;->getDisplayMode()I

    move-result v2

    aget-object v1, v1, v2

    iput-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDisplayMode:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    .line 1242
    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;->isInputEnabled()Z

    move-result v1

    iput-boolean v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInputEnabled:Z

    .line 1243
    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;->isInStealthMode()Z

    move-result v1

    iput-boolean v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInStealthMode:Z

    .line 1244
    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;->isTactileFeedbackEnabled()Z

    move-result v1

    iput-boolean v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEnableHapticFeedback:Z

    .line 1245
    return-void
.end method

.method protected onSaveInstanceState()Landroid/os/Parcelable;
    .registers 9

    .prologue
    .line 1227
    invoke-super {p0}, Landroid/view/View;->onSaveInstanceState()Landroid/os/Parcelable;

    move-result-object v1

    .line 1228
    .local v1, "superState":Landroid/os/Parcelable;
    new-instance v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;

    iget-object v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    .line 1229
    invoke-static {v2}, Lcom/zuimeia/ui/lockpattern/LockPatternUtils;->patternToString(Ljava/util/List;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDisplayMode:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    .line 1230
    invoke-virtual {v3}, Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;->ordinal()I

    move-result v3

    iget-boolean v4, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInputEnabled:Z

    iget-boolean v5, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInStealthMode:Z

    iget-boolean v6, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEnableHapticFeedback:Z

    const/4 v7, 0x0

    invoke-direct/range {v0 .. v7}, Lcom/zuimeia/ui/lockpattern/LockPatternView$SavedState;-><init>(Landroid/os/Parcelable;Ljava/lang/String;IZZZLcom/zuimeia/ui/lockpattern/LockPatternView$1;)V

    return-object v0
.end method

.method protected onSizeChanged(IIII)V
    .registers 10
    .param p1, "w"    # I
    .param p2, "h"    # I
    .param p3, "oldw"    # I
    .param p4, "oldh"    # I

    .prologue
    const/high16 v4, 0x40400000

    .line 489
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingLeft()I

    move-result v2

    sub-int v2, p1, v2

    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingRight()I

    move-result v3

    sub-int v1, v2, v3

    .line 490
    .local v1, "width":I
    int-to-float v2, v1

    div-float/2addr v2, v4

    iput v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareWidth:F

    .line 493
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingTop()I

    move-result v2

    sub-int v2, p2, v2

    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getPaddingBottom()I

    move-result v3

    sub-int v0, v2, v3

    .line 494
    .local v0, "height":I
    int-to-float v2, v0

    div-float/2addr v2, v4

    iput v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mSquareHeight:F

    .line 495
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 5
    .param p1, "event"    # Landroid/view/MotionEvent;

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x1

    .line 711
    iget-boolean v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInputEnabled:Z

    if-eqz v2, :cond_c

    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->isEnabled()Z

    move-result v2

    if-nez v2, :cond_e

    :cond_c
    move v0, v1

    .line 739
    :cond_d
    :goto_d
    return v0

    .line 715
    :cond_e
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    packed-switch v2, :pswitch_data_30

    move v0, v1

    .line 739
    goto :goto_d

    .line 717
    :pswitch_17
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->handleActionDown(Landroid/view/MotionEvent;)V

    goto :goto_d

    .line 720
    :pswitch_1b
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->handleActionUp(Landroid/view/MotionEvent;)V

    goto :goto_d

    .line 723
    :pswitch_1f
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->handleActionMove(Landroid/view/MotionEvent;)V

    goto :goto_d

    .line 726
    :pswitch_23
    iget-boolean v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    if-eqz v2, :cond_d

    .line 727
    iput-boolean v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternInProgress:Z

    .line 728
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->resetPattern()V

    .line 729
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->notifyPatternCleared()V

    goto :goto_d

    .line 715
    :pswitch_data_30
    .packed-switch 0x0
        :pswitch_17
        :pswitch_1b
        :pswitch_1f
        :pswitch_23
    .end packed-switch
.end method

.method public setDisplayMode(Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;)V
    .registers 6
    .param p1, "displayMode"    # Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    .prologue
    .line 400
    iput-object p1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDisplayMode:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    .line 401
    sget-object v1, Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;->Animate:Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;

    if-ne p1, v1, :cond_3c

    .line 402
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_16

    .line 403
    new-instance v1, Ljava/lang/IllegalStateException;

    const-string v2, "you must have a pattern to animate if you want to set the display mode to animate"

    invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 406
    :cond_16
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mAnimatingPeriodStart:J

    .line 407
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .line 408
    .local v0, "first":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->getColumn()I

    move-result v1

    invoke-direct {p0, v1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterXForColumn(I)F

    move-result v1

    iput v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressX:F

    .line 409
    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->getRow()I

    move-result v1

    invoke-direct {p0, v1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->getCenterYForRow(I)F

    move-result v1

    iput v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInProgressY:F

    .line 410
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->clearPatternDrawLookup()V

    .line 412
    .end local v0    # "first":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    :cond_3c
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->invalidate()V

    .line 413
    return-void
.end method

.method public setInStealthMode(Z)V
    .registers 2
    .param p1, "inStealthMode"    # Z

    .prologue
    .line 354
    iput-boolean p1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mInStealthMode:Z

    .line 355
    return-void
.end method

.method public setOnPatternListener(Lcom/zuimeia/ui/lockpattern/OnPatternListener;)V
    .registers 2
    .param p1, "onPatternListener"    # Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    .prologue
    .line 373
    iput-object p1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mOnPatternListener:Lcom/zuimeia/ui/lockpattern/OnPatternListener;

    .line 374
    return-void
.end method

.method public setPattern(Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;Ljava/util/List;)V
    .registers 8
    .param p1, "displayMode"    # Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;",
            "Ljava/util/List",
            "<",
            "Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 383
    .local p2, "pattern":Ljava/util/List;, "Ljava/util/List<Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;>;"
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    .line 384
    iget-object v1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPattern:Ljava/util/ArrayList;

    invoke-virtual {v1, p2}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 385
    invoke-direct {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->clearPatternDrawLookup()V

    .line 386
    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_11
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2d

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    .line 387
    .local v0, "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    iget-object v2, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mPatternDrawLookup:[[Z

    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->getRow()I

    move-result v3

    aget-object v2, v2, v3

    invoke-virtual {v0}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->getColumn()I

    move-result v3

    const/4 v4, 0x1

    aput-boolean v4, v2, v3

    goto :goto_11

    .line 390
    .end local v0    # "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    :cond_2d
    invoke-virtual {p0, p1}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->setDisplayMode(Lcom/zuimeia/ui/lockpattern/LockPatternView$DisplayMode;)V

    .line 391
    return-void
.end method

.method public setTactileFeedbackEnabled(Z)V
    .registers 2
    .param p1, "tactileFeedbackEnabled"    # Z

    .prologue
    .line 364
    iput-boolean p1, p0, Lcom/zuimeia/ui/lockpattern/LockPatternView;->mEnableHapticFeedback:Z

    .line 365
    return-void
.end method

.method public setThemeColors([[I)V
    .registers 7
    .param p1, "colors"    # [[I

    .prologue
    const/4 v4, 0x3

    .line 319
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_2
    if-ge v1, v4, :cond_17

    .line 320
    const/4 v2, 0x0

    .local v2, "j":I
    :goto_5
    if-ge v2, v4, :cond_14

    .line 321
    invoke-static {v1, v2}, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->of(II)Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;

    move-result-object v0

    .line 322
    .local v0, "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    aget-object v3, p1, v1

    aget v3, v3, v2

    iput v3, v0, Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;->color:I

    .line 320
    add-int/lit8 v2, v2, 0x1

    goto :goto_5

    .line 319
    .end local v0    # "cell":Lcom/zuimeia/ui/lockpattern/LockPatternView$Cell;
    :cond_14
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 326
    .end local v2    # "j":I
    :cond_17
    invoke-virtual {p0}, Lcom/zuimeia/ui/lockpattern/LockPatternView;->invalidate()V

    .line 327
    return-void
.end method
